{extend name="index/base" /}
{block name="style"}{/block}
{block name="body"}
<form class="layui-form"> 
	<div class="layui-form-item">
	    <label class="layui-form-label">分类名称：</label>
	    <div class="layui-input-inline">
	      <input type="text" name="name" value="{$info.name}" placeholder="" autocomplete="off" class="layui-input" lay-verify="required">
	    </div>
	</div>
  <div class="layui-form-item">
    <label class="layui-form-label">所属分类：</label>
    <div class="layui-input-block">
      <select name="pid" lay-verify="required">
      <option value="0">顶级分类</option>
      {volist name="cate_list" id="vo"}
        <option value="{$vo.id}" >{$vo.name}</option>
      {/volist}
      
      </select>
    </div>
  </div>
  
  <div class="layui-form-item layui-sumbtn">
	  <div class="layui-input-block">
	    <button class="layui-btn self_window" lay-submit="" lay-filter="ajax-post" type="submit" target-form="layui-form">立即提交</button>
	    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	  </div>
  </div>
  
</form>
{/block}

{block name="script"}
<script type="text/javascript">
layui.use(['tool'],function(){
	var $ = layui.$,layer = layui.layer, form = layui.form,table = layui.table,tool = layui.tool;
	tool.setValue('pid','{$info.pid}')
});
</script>
{/block}